<!DOCTYPE html>
<html lang="en">

<head>
    <title>Add Article</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="button.css">
    <link rel="stylesheet" type="text/css" href="footer.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <script src="button.js"></script>

</head>

<!-- 导航栏 -->
<div class="container" style="margin-top:15px">

    <nav class="navbar navbar-expand-sm bg-secondary navbar-light">
        <ul class="navbar-nav">
            <li class="nav-item active">
                <a class="nav-link" href="my_articles.html">我的博客</a>
            </li>
        </ul>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <!-- 这个 div 加上 justify-content-end 样式即可 -->
        <div class="collapse navbar-collapse justify-content-end" id="navbarSupportedContent">
            <ul class="navbar-nav" id="headerNav">
                <a class="btn btn-info" data-toggle="modal" data-target="#exampleModal" role="button">上传图片</a>

            </ul>
        </div>
    </nav>
</div>

<div class="container">
    <div class="col-12">
        <br>
        <!-- 提交文章的表单 -->
        <form method="post" action="article_datail.html">

            <!-- 文章标题 -->
            <div class="form-group">
                <!-- 标签 -->
                <label for="title">文章标题</label>
                <!-- 文本框 -->
                <input type="text" class="form-control" id="title" name="title">
            </div>
            <!-- 文章正文 -->
            <div class="form-group">
                <label for="body">文章正文</label>
                <!-- 文本区域 -->
                <textarea type="text" class="form-control" id="body" name="body" rows="12"></textarea>
            </div>
            <!-- 提交按钮 -->
            <button type="submit" class="btn btn-primary">完成</button>
        </form>
    </div>
</div>


<!-- 上传弹窗Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
    aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">插入图片</h5>
            </div>

            <div class="modal-body">

                <form action="#" method="post" enctype="multipart/form-data">

                    <div class="col-md-6 offset-md-3">
                        <input type="file" name="file_field" multiple="multiple" required="required">
                    </div>
                    <div class="col-md-6 offset-md-3">
                    </div>

                    <div class="modal-footer">
                        <input class="btn btn-info" type="submit" value="提交">
                    </div>
                </form>


            </div>
        </div>
    </div>
</div>


<!-- 向上按钮 -->
<button type="button" id="BackTop" class="toTop-arrow" style="z-index: 100;"></button>

<!-- 新增两个 div 容器 -->
<div id="wrapper">
    <div id="push"></div>
</div>
<footer id="footer">
    <div class="container">
        <hr style="margin: 0;">
    </div>
    <nav class="navbar navbar-light mb-0" id="nav-footer" style="background-color: white">

        <div class="row col-12 justify-content-center font-size-xs">
            <div style="text-align: center; color: black;">
                <div class="mb-0">
                    <div id="show_time0">
                        <script>
                            setInterval("show_time0.innerHTML='CopyRight © 2019 ~'+new Date().getFullYear();", 1000);
                        </script>
                    </div>
                    ZXY iblog
                </div>
                <p class="mb-0">Powered by
                    <span class="mb-0">&nbsp;豫1008611</span>
                </p>
            </div>
        </div>
        </div>
    </nav>
</footer>

</body>

</html>